package com.xiaofei.test;
/**
 * 系统常量表
 * @author devops-n1
 *
 */
public class Constants {
	
	public static final String Y = "Y";
	public static final String N = "N";
	public static final String CONTRACT_MONEY_LOG = "合同分成";
	public static final String DJ_NAME = "合同分成";

	public static enum vipSource {  
		NORMAL("正常的", 0),  
		SHARE("通过分享来的", 0); 
		// 成员变量  
		private String name;  
		private int code;  
		// 构造方法  
		private vipSource(String name, int code) {  
			this.name = name;  
			this.code = code;  
		}  
		public int getCode() {  
			return code;  
		}  
	} 
	/**
	 * 分页常量
	 * @author devops-n1
	 *
	 */
	public static enum Page {  
		PAGESIZE("每页几条", 10);  
		// 成员变量  
		private String name;  
		private int code;  
		// 构造方法  
		private Page(String name, int code) {  
			this.name = name;  
			this.code = code;  
		}  
		public int getCode() {  
			return code;  
		}  
	} 
	/**
	 * vip类型
	 * @author devops-n1
	 *
	 */
	public static enum VipType {  
		YEAR(398, 1,365),
		SEASON(158, 2,90),
		MONTH(68, 3,30);
		// 成员变量  
		private int money;  
		private long code;  
		private int days;  
		// 构造方法  
		private VipType(int money, int code,int days) {  
			this.money = money;  
			this.code = code;  
			this.days = days;  
		}  
		public long getCode() {  
			return code;  
		}  
		public int getMoney() {  
			return money;  
		}  
		public int getDays() {  
			return days;  
		}  
	} 
	/**
	 * 合同vip状态类型
	 * @author devops-n1
	 *
	 */
	public static enum VipAccountStatus {  
		valid("已开通", 1),
		invalid("已过期", -1);  
		// 成员变量  
		private String name;  
		private int code;  
		// 构造方法  
		private VipAccountStatus(String name, int code) {  
			this.name = name;  
			this.code = code;  
		}  
		public int getCode() {  
			return code;  
		}
		public String getName() {  
			return name;  
		}  
	} 
	
	public static enum orderStarter {  
		CONTRACT("DTV");  
		// 成员变量  
		private String code;  
		// 构造方法  
		private orderStarter(String code) {  
			this.code = code;  
		}  
		public String getCode() {  
			return code;  
		}  
	} 
	/**
	 * 
	 * @author devops-n1
	 *
	 */
	public static enum contractVisual {  
		VISIBLE(1),  
		INVISIBLE(0);  
		// 成员变量  
		private int code;  
		// 构造方法  
		private contractVisual(int code) {  
			this.code = code;  
		}  
		public int getCode() {  
			return code;  
		}  
	} 
	
	/**
	 * goods.own_type
	 * @author devops-n1
	 *
	 */
	public static enum contractType {  
		DJ("点睛",1),
		FIRMSHOPPE("律所专柜",2),
		FIRMPERSON("个人专柜",3),
		CONTRACTPERSON("个人合同",4);
		// 成员变量  
		private String name;  
		private int code;  
		// 构造方法  
		private contractType(String name,int code) {  
			this.name = name;  
			this.code = code;  
		}  
		public int getCode() {  
			return code;  
		}  
		public String getName() {  
			return name;  
		}  
	} 
	/**
	 * dj_user_purse 表 purse_type 枚举
	 * @author devops-n1
	 *
	 */
	public static enum purseType {  
		DT("点同宝钱包",(byte)24);
		// 成员变量  
		private String name;  
		private byte code;  
		// 构造方法  
		private purseType(String name,byte code) {  
			this.name = name;  
			this.code = code;  
		}  
		public byte getCode() {  
			return code;  
		}  
		public String getName() {  
			return name;  
		}  
	} 
	/**
	 * djsh_purse_money_log 表distribute_done字段
	 * 0 未分配，1 已分配 ,2拒绝
	 * @author devops-n1
	 *
	 */
	public static enum distributeDone {  
		NONE("未分配",(byte)0),
		HAD("已分配",(byte)1),
		DENY("拒绝",(byte)2);
		// 成员变量  
		private String name;  
		private byte code;  
		// 构造方法  
		private distributeDone(String name,byte code) {  
			this.name = name;  
			this.code = code;  
		}  
		public byte getCode() {  
			return code;  
		}  
		public String getName() {  
			return name;  
		}  
	}
	
	/**
	 * djsh_contract_share_log 表type字段
	 * 1 版权分成，2下载分成
	 *
	 */
	public static enum contractShareLogType {  
		EDITION("版权分成",(short)1),
		DOWNLOAD("下载分成",(short)2);
		// 成员变量  
		private String name;  
		private short code;  
		// 构造方法  
		private contractShareLogType(String name,short code) {  
			this.name = name;  
			this.code = code;  
		}  
		public short getCode() {  
			return code;  
		}  
		public String getName() {  
			return name;  
		}  
	} 
}
